
package com.jiuqi.irs.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for tbDetailproof.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="tbDetailproofForm"
 */
public class TbUserInfoForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String infoGuid = null;
   
   private java.lang.String orgGuid = null;

   private java.lang.String infoOperator = null;

   private java.lang.String infoCeo = null;
   
   private java.lang.String infoCfo = null;
   
   private java.lang.String infoPostcode = null;
   
   private java.lang.String infoTel = null;
   
   private java.lang.String infoAddress = null;
   
   private java.lang.String infoCreatTime = null;
   
   private java.lang.String infoLastTime = null;
   
   private java.lang.String infoYear = null;
  
   private java.lang.String reserved1 = null;
  
   private java.lang.String reserved2 = null;
  
   private java.lang.String reserved3 = null;
   /**
    * Standard constructor.
    */
   public TbUserInfoForm() {
   }

  

   public java.lang.String getInfoGuid() {
	return infoGuid;
}



public void setInfoGuid(java.lang.String infoGuid) {
	this.infoGuid = infoGuid;
}



public java.lang.String getOrgGuid() {
	return orgGuid;
}



public void setOrgGuid(java.lang.String orgGuid) {
	this.orgGuid = orgGuid;
}



public java.lang.String getInfoOperator() {
	return infoOperator;
}



public void setInfoOperator(java.lang.String infoOperator) {
	this.infoOperator = infoOperator;
}



public java.lang.String getInfoCeo() {
	return infoCeo;
}



public void setInfoCeo(java.lang.String infoCeo) {
	this.infoCeo = infoCeo;
}



public java.lang.String getInfoCfo() {
	return infoCfo;
}



public void setInfoCfo(java.lang.String infoCfo) {
	this.infoCfo = infoCfo;
}



public java.lang.String getInfoPostcode() {
	return infoPostcode;
}



public void setInfoPostcode(java.lang.String infoPostcode) {
	this.infoPostcode = infoPostcode;
}



public java.lang.String getInfoTel() {
	return infoTel;
}



public void setInfoTel(java.lang.String infoTel) {
	this.infoTel = infoTel;
}



public java.lang.String getInfoAddress() {
	return infoAddress;
}



public void setInfoAddress(java.lang.String infoAddress) {
	this.infoAddress = infoAddress;
}



public java.lang.String getInfoCreatTime() {
	return infoCreatTime;
}



public void setInfoCreatTime(java.lang.String infoCreatTime) {
	this.infoCreatTime = infoCreatTime;
}



public java.lang.String getInfoLastTime() {
	return infoLastTime;
}



public void setInfoLastTime(java.lang.String infoLastTime) {
	this.infoLastTime = infoLastTime;
}



public java.lang.String getInfoYear() {
	return infoYear;
}



public void setInfoYear(java.lang.String infoYear) {
	this.infoYear = infoYear;
}



public java.lang.String getReserved1() {
	return reserved1;
}



public void setReserved1(java.lang.String reserved1) {
	this.reserved1 = reserved1;
}



public java.lang.String getReserved2() {
	return reserved2;
}



public void setReserved2(java.lang.String reserved2) {
	this.reserved2 = reserved2;
}



public java.lang.String getReserved3() {
	return reserved3;
}



public void setReserved3(java.lang.String reserved3) {
	this.reserved3 = reserved3;
}



/**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getOrgGuid() == null) {
         errors.add("orgGuid", new ActionError("error.orgGuid.required"));
      }
      if(getInfoGuid() == null) {
         errors.add("infoGuid", new ActionError("error.infoGuid.required"));
      }
     
      // TODO test format/data
      return errors;
   }
}
